import psutil

class PowerManager:
    def get_battery_level(self) -> float:
        """获取电池电量"""
        return psutil.sensors_battery().percent